import axios from 'axios'

export default {
	/**
	 * 获取巡店数据
	 * @returns {AxiosPromise<any>}
	 */
	fetch (params) {
		return axios.get('/api/xun_dian_list', {
			params: params
		});
	},
	/**
	 * 根据ID获取巡店数据明细
	 * @param.id
	 * @param params
	 * @returns {AxiosPromise<any>}
	 */
	fetchByID (params) {
		return axios.get(`/api/xun_id_get_min_xi/${params.id}`, {
			params: params
		});
	},
}